package com.zhangfei.mapper;

import com.zhangfei.bean.User;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;


@Repository
public interface UserMapper {

    @Select("select * from tb_user where username=#{username}")
    User getByUsername(String username);
    //代理对象:MapperScannerRegistrar已经扫描生成了MapperFactoryBean类型的代理对象



}
